import service from '@/utils/request'

export const createApp = (data) => {
  return service({
    url: 'app/createApp',
    method: 'post',
    data
  })
}

export const deleteApp = (data) => {
  return service({
    url: 'app/deleteApp',
    method: 'delete',
    data
  })
}

export const updateApp = (data) => {
  return service({
    url: 'app/updateApp',
    method: 'put',
    data
  })
}

export const getAppList = (params) => {
  return service({
    url: 'app/getAppList',
    method: 'get',
    params
  })
}

export const getUserListWithoutPage = (params) => {
  return service({
    url: 'user/getUserListWithoutPage',
    method: 'get',
    params
  })
}
